`include "constants.vams"
`include "disciplines.vams"

module TransconductanceAmp(vout, vin_n, vin_p);

	inout vin_p, vin_n;
	output vout;

	electrical vin_p, vin_n, vout;

	parameter real G_M = 250n;
	parameter real R_out = 1G;

	analog begin

		I(vout) <+ -G_M * V(vin_p, vin_n);
		I(vout) <+ V(vout, vin_n) / R_out;

	end

endmodule
